//全局样式

@import "./transition.less";
@import "./scrollbar.less";
@import "./custom.less";

html,
body {
  width: 100%;
  height: 100%;
  color: #333;
  font-size: 14px;
  background-color: #f1f1f1;
  line-height: 1.2;
  margin: 0;
}

#app {
  height: 100%;
  width: 100%;
}

.showTagsBar {
  .page-card-container {
    min-height: calc(100vh - 114px) !important;
  }
}

.page-container {
  padding: 14px;
  width: 100%;

  .page-card-container {
    width: 100%;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 10px 0px #dedede;
    min-height: calc(100vh - 78px);
    padding: 14px;
    position: relative;
  }
}

.ant-table {
  color: #333333 !important;

  .ant-table-container {
    border-color: #dedede !important;
  }

  table {
    border-color: #dedede !important;
  }

  th {
    background-color: @tableThBg !important;
    border-color: #dedede !important;
    font-weight: bold !important;
  }

  td {
    border-color: #dedede !important;
  }

  td.ant-table-cell {
    padding: 4px 8px !important;
  }

  td.ant-table-cell-row-hover {
    background-color: @tableThBg !important;
  }
}

input:not(.ant-input) {
  outline: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-color: #bbbbbb;
}

div {
  box-sizing: border-box;
}

.flex1 {
  flex: 1;
}

.commonBtn-primary {
  border-radius: 4px;
  font-size: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  cursor: pointer;
  position: relative;
  background-color: @primary-color;
  color: #fff;

  &:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: none;
    background: #fff;
    border-radius: inherit;
    opacity: 0.1;
    transition: all 0.5s;
    content: "";
    pointer-events: none;
  }

  &:hover {
    &:after {
      display: block;
    }
  }
}

.commonBtn-primary-line {
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid @primary-color;
  background: #ffffff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  color: @primary-color;

  &:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: none;
    background: #fff;
    border-radius: inherit;
    opacity: 0.1;
    transition: all 0.5s;
    content: "";
    pointer-events: none;
  }

  &:hover {
    &:after {
      display: block;
    }
  }
}

.commonBtn-warning {
  border-radius: 4px;
  font-size: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  cursor: pointer;
  position: relative;
  background-color: #ffa94e;
  color: #fff;

  &:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: none;
    background: #fff;
    border-radius: inherit;
    opacity: 0.1;
    transition: all 0.5s;
    content: "";
    pointer-events: none;
  }

  &:hover {
    &:after {
      display: block;
    }
  }
}

.commonBtn-danger {
  border-radius: 4px;
  font-size: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  cursor: pointer;
  position: relative;
  background: #e9495b;
  color: #fff;

  &:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: none;
    background: #fff;
    border-radius: inherit;
    opacity: 0.1;
    transition: all 0.5s;
    content: "";
    pointer-events: none;
  }

  &:hover {
    &:after {
      display: block;
    }
  }
}

.flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.flex-row-yend {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
}

.flex-row-xy-center {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.flex-row-xcenter {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

.flex-row-ycenter {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.flex-row-xbetween-ycenter {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.flex-row-xbetween {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-column-xy-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flex-column-ycenter {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flex-column-xcenter {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flex-column-xbetween-ycenter {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.flex-column-xbetween {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pointer {
  position: relative;
  cursor: pointer;

  &:active {
    top: 1px;
  }
}

.line1-ellipsis {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  word-break: break-all;
}

.line2-ellipsis {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-all;
}

.line3-ellipsis {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.g-fixed {
  position: fixed;
}

.g-relative {
  position: relative;
}

.g-absolute {
  position: absolute;
}

.g-hidden {
  visibility: hidden;
}

.g-none {
  display: none;
}

.mb-5 {
  margin-bottom: 5px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-25 {
  margin-bottom: 25px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-35 {
  margin-bottom: 35px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-5 {
  margin-top: 5px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-25 {
  margin-top: 25px;
}

.mt-30 {
  margin-top: 30px;
}

.mt-35 {
  margin-top: 35px;
}

.mt-40 {
  margin-top: 40px;
}

.ml-5 {
  margin-left: 5px;
}

.ml-10 {
  margin-left: 10px;
}

.ml-15 {
  margin-left: 15px;
}

.ml-20 {
  margin-left: 20px;
}

.ml-25 {
  margin-left: 25px;
}

.ml-30 {
  margin-left: 30px;
}

.ml-35 {
  margin-left: 35px;
}

.ml-40 {
  margin-left: 40px;
}

.mr-5 {
  margin-right: 5px;
}

.mr-10 {
  margin-right: 10px;
}

.mr-15 {
  margin-right: 15px;
}

.mr-20 {
  margin-right: 20px;
}

.mr-25 {
  margin-right: 25px;
}

.mr-30 {
  margin-right: 30px;
}

.mr-35 {
  margin-right: 35px;
}

.mr-40 {
  margin-right: 40px;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-bold {
  font-weight: bold;
}

.bg-fff {
  background-color: #ffffff;
}

.c-primaryColor {
  color: @primary-color;
}

.c-fff {
  color: #ffffff;
}

.c-000 {
  color: #000;
}

.c-333 {
  color: #333;
}

.c-666 {
  color: #666;
}

.c-999 {
  color: #999;
}

.fs-10 {
  font-size: 10px;
}

.fs-12 {
  font-size: 12px;
}

.fs-14 {
  font-size: 14px;
}

.fs-16 {
  font-size: 16px;
}

.fs-18 {
  font-size: 18px;
}

.fs-20 {
  font-size: 20px;
}

.fs-22 {
  font-size: 22px;
}

.fs-24 {
  font-size: 24px;
}

.fs-26 {
  font-size: 26px;
}

.fs-28 {
  font-size: 28px;
}

.fs-30 {
  font-size: 30px;
}

.fs-32 {
  font-size: 32px;
}

.fs-34 {
  font-size: 34px;
}

.fs-36 {
  font-size: 36px;
}

.fs-38 {
  font-size: 38px;
}

.fs-40 {
  font-size: 40px;
}

.font-center {
  text-align: center;
}

.font-left {
  text-align: left;
}

.font-right {
  text-align: right;
}

.box-center {
  margin-left: auto;
  margin-right: auto;
}

.flex-shrink0 {
  flex-shrink: 0;
}
.ant-form-inline .ant-form-item {
  margin-bottom: 10px !important;
}
.commonBtn-line {
  color: #2172fc;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid #2172fc;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 14px;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;

  &:before {
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    z-index: 1;
    display: none;
    background: #fff;
    border-radius: inherit;
    opacity: 0.2;
    transition: all 0.5s;
    content: "";
    pointer-events: none;
  }

  &:hover {
    &:before {
      display: block;
    }
  }
}
.flex_row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.flex_row_ycenter {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}
.c000 {
  color: #000;
}
.fw_bold {
  font-weight: bold;
}

.flex_row_xy_center {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.nowrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a {
  text-decoration: none;
}
